import java.util.Scanner;
//密码强度等级
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String password = in.nextLine();
        int total = 0;
        //长度
        if (password.length() <= 4 && total > 0) {
            total = total + 5;
        } else if (password.length() >= 5 && password.length() <= 7) {
            total = total + 10;

        } else if (password.length() >= 8) {
            total = total + 25;

        } else if(password.length()<=0){
            System.out.println("VERY_WEAK");
            return;

        }else{
            total = total + 5;
        }
        //字母
        int countle = 0;//小写
        int countLE = 0;//大写
        int len = password.length();
        for (int i = 0 ; i < len; i++) {
            if (countle == 0) {
                if (password.charAt(i) >= 'a' && password.charAt(i) <= 'z') {
                    countle = 1;
                }
            }
            if (countLE == 0) {
                if (password.charAt(i) >= 'A' && password.charAt(i) <= 'Z') {
                    countLE = 1;
                }
            }
            if (countLE == 1 && countle == 1) {
                break;
            }
        }
        //算分
        if (countLE == 1 && countle == 1) {
            total = total + 20;
        } else if (countLE == 1 || countle == 1) {
            total = total + 10;
        }
        //数字
        int countmath = 0;
        for (int i = 0 ; i < len; i++) {
            if (password.charAt(i) >= '0' && password.charAt(i) <= '9') {
                countmath += 1;
            }
            if(countmath > 1){
                break;
            }
        }
        if (countmath == 1) {
            total = total + 10;
        } else if (countmath > 1) {
            total = total + 20;

        }
        //符号
        int conutsymbol = 0;
        for (int i = 0 ; i < len; i++) {
            if (password.charAt(i) >= '!' && password.charAt(i) <= '/') {
                conutsymbol  += 1;
            }
            if (password.charAt(i) >= ':' && password.charAt(i) <= '@') {
                conutsymbol  += 1;
            }
            if (password.charAt(i) >= '[' && password.charAt(i) <= '`') {
                conutsymbol  += 1;
            }
            if (password.charAt(i) >= '{' && password.charAt(i) <= '~') {
                conutsymbol  += 1;
            }
            if(conutsymbol  > 1){
                break;
            }
        }
        if (conutsymbol  == 1) {
            total = total + 10;
        } else if (conutsymbol  > 1) {
            total = total + 25;
        }
        //奖励
        if (conutsymbol > 0 && countmath > 0 && countLE == 1 && countle == 1) {
            total = total + 5;
        } else if (conutsymbol > 0 && countmath > 0 && (countLE == 1 || countle == 1)) {
            total = total + 3;

        } else if (countmath > 0 && (countLE == 1 || countle == 1)) {
            total = total + 2;

        }
        //评分
        if (total >= 90) {
            System.out.println("VERY_SECURE");
        } else if (total >= 80) {
            System.out.println("SECURE");
        } else if (total >= 70) {
            System.out.println("VERY_STRONG");
        } else if (total >= 60) {
            System.out.println("STRONG");
        } else if (total >= 50) {
            System.out.println("AVERAGE");
        } else if (total >= 25) {
            System.out.println("WEAK");
        } else if (total >= 0) {
            System.out.println("VERY_WEAK");
        }

    }
}